<template>
  <div class="light-theme-login">
    <div class="form-container">
      <el-form class="form">
        <div class="head">
          <img class="head-icon" :src="LogoBlackBlue" />
          <span class="head-title">小萤星</span>
        </div>
        <div class="form-main">
          <el-form-item>
            <el-input placeholder="账户">
              <img slot="prefix" :src="AccountIcon" class="account-icon" />
            </el-input>
          </el-form-item>
          <el-form-item>
            <el-input placeholder="密码" type="password">
              <img slot="prefix" :src="PasswordIcon" class="account-icon" />
            </el-input>
          </el-form-item>
          <div class="opr">
            <div class="auto-login">
              <el-checkbox />
              自动登录
            </div>
            <div class="forget-pwd">忘记密码</div>
          </div>
          <el-button type="primary" class="login-btn">登录</el-button>
          <div class="register">注册账户</div>
        </div>
      </el-form>
    </div>
  </div>
</template>

<script>
import LogoBlackBlue from "@/assets/imgs/logo_black_blue.png";
import AccountIcon from "@/assets/imgs/account.png";
import PasswordIcon from "@/assets/imgs/password.png";
export default {
  name: "LightThemeLogin",
  data() {
    return {
      LogoBlackBlue,
      AccountIcon,
      PasswordIcon,
    };
  },
};
</script>

<style lang="less" scoped>
.light-theme-login {
  position: relative;
  min-height: 100vh;
  background-color: #178efc;
  .form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: flex-end;
    width: 1304px;
    height: 678px;

    background-color: #d2eaff;
    border-radius: 63px;
    background-image: url("~@/assets/imgs/login_welcome.png");
    background-repeat: no-repeat;
    background-position: 28px 56px;
    .form {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 652px;
      height: 678px;
      background-color: #fff;
      border-radius: 63px;
      .head {
        display: flex;
        align-items: center;
        height: 65px;
        margin: 114px 0 85px 0;
        .head-title {
          margin-left: 19px;
          font-size: 49px;
          font-weight: 700;
          color: #1791ff;
        }
      }
      .form-main {
        width: 447px;
        /deep/.el-input__inner {
          height: 48px;
          padding-left: 36px;
          font-size: 16px;
        }
        /deep/.el-input__prefix {
          padding: 10px 0 0 5px;
        }
        .el-input + .el-input {
          margin-top: 29px;
        }

        .opr {
          margin: 35px 0 30px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .auto-login {
            color: #9d9d9d;
          }
          .forget-pwd {
            margin-right: 35px;
            color: #1791ff;
          }
        }

        .login-btn {
          width: 100%;
        }

        .register {
          margin-top: 20px;
          margin-right: 35px;
          text-align: right;
          color: #1791ff;
        }
      }
    }
  }
}
</style>
